package indvi.cfeng.persistencedemo.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import javax.persistence.Id;

/**
 * @author Cfeng
 * @date 2022/7/17
 */
@Data
@Document("MongoWare")
public class MongoWare {

    @Id
    private Integer id;

    @Field(value = "mogo_name")
    private String mogoName;

    @Field(value = "mogo_class")
    private String mogoClass;
}
